I ran 'single script' and checked 'Save documents on closing', now the new documents with '.indd' on the filenames (I have already got the same as file extension). And the original files are staying the same (previous versions). Is it a way to save over the orginal files by not adding '.indd'? I will use the Backups checkbox option for keeping the original documents, so changing the filenames will ad another step for me to rename. This shouldn't and doesn't happen on my side. Could you take a screenshot of the settings you used? What is your InDesign version? Which platform: Mac/Windows? Are you working locally or on the network? If the latter, are you able to save it manually? Also, if I want to make the metadata author name to 'Company name', how do I tweak the existing code you wrote above? There are a few product lines' documents and they will have different company names on the 'author' metadata, I will need to alter the 'author' for each product and save them under different jsx files. From your original post, looking at your example, I guessed that you want to get the author from the file name: everything from the beginning to the 1st underscore. Here I prepared a new script with an arguments file (author.txt). See the screenshot to get the idea, and read the script description for details.
... View more